import { Input, Menu, Dropdown, Icon, List, Avatar, Button, Carousel, Select, notification } from 'antd';
import React, { useState, useRef, useEffect } from 'react';
import { usenowDate } from '../util/util';


var storage = window.localStorage;

export function use_wlfl_treedata() {
  return [

  ];

}

//物料分类column
export function use_wlfl_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 80 },
  { show: true,ellipsis: true, title: "一级分类", key: "yjflmc", dataIndex: "yjflmc", width: 100 },
  { show: true,ellipsis: true, title: "二级分类", key: "ejflmc", dataIndex: "ejflmc", width: 100 },
  { show: true,ellipsis: true, title: "三级分类", key: "sjflmc", dataIndex: "sjflmc", width: 100 },
  { show: true,ellipsis: true, title: "分类编码", key: "flbm", dataIndex: "flbm", width: 100 },
  { show: true,ellipsis: true, title: "分类名称", key: "flmc", dataIndex: "flmc", width: 150 },
  ]
}

/**
 * 
 * @returns  物料分类
 */
export function use_wlfl_old_initformdata() {
  var initformdata = {
    wlfl_title: { ifdb: false, bt: false, value: "", title: '物料分类', dataIndex: 'wlfl_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    flmc: { ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "input_item", },
    flbm: { ifdb: true, bt: true, value: "", title: '分类编码', dataIndex: 'flbm', inputType: "input_item", },
    sjflmc: {
      ifdb: true, bt: true, value: "", title: '上级分类', dataIndex: 'sjflmc', inputType: "tree_select_item",
      selectdata: [], lineheight: "1.8rem", customlinewidth: "49%"

    },
    sjflid: { ifdb: true, bt: false, value: "", title: '上级id', dataIndex: 'sjflid', inputType: "none", },
    sjflbm: { ifdb: true, bt: false, value: "", title: '上级编码', dataIndex: 'sjflbm', inputType: "none", },

    ms: { ifdb: true, bt: false, value: "", title: '描述', dataIndex: 'ms', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @returns  物料分类
 */
export function use_wlfl_initformdata() {
  var initformdata = {
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "readonly" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    yjfl_title: { ifdb: false, bt: false, value: "", title: '一级分类', dataIndex: 'yjfl_title', inputType: "title_item" },
    yjflmc: {
      ifdb: true, bt: false, value: "", title: '一级分类名称', dataIndex: 'yjflmc',
      inputType: "select_item_new",
      datas_key: "yjfl_selectdata",
      popup_tansferarr: [
        { origin: "yjflmc", target: "yjflmc" },
        { origin: "yjflbm", target: "yjflbm" },
      ]
    },
    yjflbm: { ifdb: true, bt: false, value: "", title: '一级分类编码', dataIndex: 'yjflbm', inputType: "readonly" },

    ejfl_title: { ifdb: false, bt: false, value: "", title: '二级分类', dataIndex: 'ejfl_title', inputType: "title_item" },
    ejflmc: {
      ifdb: true, bt: false, value: "", title: '二级分类名称', dataIndex: 'ejflmc',
      inputType: "select_item_new",
      datas_key: "ejfl_selectdata",
      popup_tansferarr: [
        { origin: "ejflmc", target: "ejflmc" },
        { origin: "ejflbm", target: "ejflbm" },
      ]
    },
    ejflbm: { ifdb: true, bt: false, value: "", title: '二级分类编码', dataIndex: 'ejflbm', inputType: "readonly" },
    sjfl_title: { ifdb: false, bt: false, value: "", title: '三级分类', dataIndex: 'sjfl_title', inputType: "title_item" },
    sjflmc: { ifdb: true, bt: false, value: "", title: '三级分类名称', dataIndex: 'sjflmc', inputType: "input_item" },
    sjflbm: { ifdb: true, bt: false, value: "", title: '三级分类编码', dataIndex: 'sjflbm', inputType: "readonly" },

    flxx_title: { ifdb: false, bt: false, value: "", title: '分类信息', dataIndex: 'flxx_title', inputType: "title_item" },

    flmc: { ifdb: true, bt: false, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "readonly" },
    flbm: { ifdb: true, bt: false, value: "", title: '分类编码', dataIndex: 'flbm', inputType: "readonly" },
    sfjy: {
      ifdb: true, bt: false, value: "否", title: '是否禁用', dataIndex: 'sfjy', inputType: "select_item",
      selectdata: [{ value: '是', label: '是' }, { value: '否', label: '否' }]
    },
    xgid_title: { ifdb: false, bt: false, value: "", title: '相关id', dataIndex: 'xgid_title', inputType: "title_item" },
    yjid: { ifdb: true, bt: false, value: "", title: '一级id', dataIndex: 'yjid', inputType: "readonly" },
    ejid: { ifdb: true, bt: false, value: "", title: '二级id', dataIndex: 'ejid', inputType: "readonly" },
    sjid: { ifdb: true, bt: false, value: "", title: '三级id', dataIndex: 'sjid', inputType: "readonly" },
  }
  return initformdata
}

/**
 * 
 * @returns 物料档案colmun
 */
export function use_wlda_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 67, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建时间", key: "create_time", dataIndex: "create_time", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建人", key: "create_by", dataIndex: "create_by", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料编码", key: "wlbm", dataIndex: "wlbm", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料名称", key: "wlmc", dataIndex: "wlmc", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "规格型号", key: "ggxh", dataIndex: "ggxh", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "类别", key: "lbbm", width: 120, style: { fontSize: "0.6rem" } },
  { show: true,ellipsis: true, title: "金额", key: "je", width: 120, style: { fontSize: "0.6rem" } },
  // { show: true,ellipsis: true, title: "原物料编码", key: "ywlbm", dataIndex: "ywlbm", width: 120, style: { fontSize: "0.6rem" } },

  { show: true,ellipsis: true, title: "单位", key: "dw", dataIndex: "dw", width: 120 },
  { show: true,ellipsis: true, title: "状态", key: "sfqy", dataIndex: "sfqy" },
  // { show: true,ellipsis: true, title: "附件", key: "fj", dataIndex: "fj", rendertype: "img" },
  ]
}


/**
 * 
 * @returns 物料档案colmun
 */
export function use_wlda_initcolmun_import() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 67, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建时间", key: "create_time", dataIndex: "create_time", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  // { show: true,ellipsis: true, title: "创建人", key: "create_by", dataIndex: "create_by", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料编码", key: "wlbm", dataIndex: "wlbm", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "物料名称", key: "wlmc", dataIndex: "wlmc", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "规格型号", key: "ggxh", dataIndex: "ggxh", width: 120, style: { fontSize: "0.6rem" }, fixed: "left" },
  { show: true,ellipsis: true, title: "类别", key: "lbbm", width: 120, style: { fontSize: "0.6rem" } },
  { show: true,ellipsis: true, title: "金额", key: "je", width: 120, style: { fontSize: "0.6rem" } },
  // { show: true,ellipsis: true, title: "原物料编码", key: "ywlbm", dataIndex: "ywlbm", width: 120, style: { fontSize: "0.6rem" } },

  { show: true,ellipsis: true, title: "单位", key: "dw", dataIndex: "dw", width: 120 },
  // { show: true,ellipsis: true, title: "状态", key: "sfqy", dataIndex: "sfqy" },
  // { show: true,ellipsis: true, title: "附件", key: "fj", dataIndex: "fj", rendertype: "img" },
  ]
}

/**
 * 
 * @param {*} 物料档案formdata 
 * @returns 
 */
export function use_wlda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '物料信息', dataIndex: 'wlxx_title', inputType: "title_item" },

    lbmc: {
      ifdb: true, bt: true, value: "", title: '类别', dataIndex: 'lbmc', inputType: "tree_free_item",
      selectdata: [], lineheight: "1.8rem",
    },
    
    lbid: { ifdb: true, bt: false, value: "", title: '类别id', dataIndex: 'lbid', inputType: "none", },
    lbbm: { ifdb: true, bt: false, value: "", title: '类别编码', dataIndex: 'lbbm', inputType: "readonly", },

    wlmc: { ifdb: true, bt: true, value: "", title: '物料名称', dataIndex: 'wlmc', inputType: "input_item", },
    ggxh: { ifdb: true, bt: true, value: "", title: '规格型号', dataIndex: 'ggxh', inputType: "input_item", },
    // ywlbm: { ifdb: true, bt: true, value: "", title: '原物料编码', dataIndex: 'ywlbm', inputType: "input_item", },

    wlbm: { ifdb: true, bt: false, value: "", title: '物料编码', dataIndex: 'wlbm', inputType: "readonly", placeholder: "自动生成" },
    dw: {
      ifdb: true, bt: true, value: "", title: '单位', dataIndex: 'dw', inputType: "select_item_new", datas_key: 'dict_dw',
      width: '5vw',
      popup_tansferarr: [
        { origin: "label", target: "dw" },
      ],
    },
    // fdw: { ifdb: true, bt: false, value: "", title: '辅单位', dataIndex: 'fdw', inputType: "input_item", },
    // bb: {
    //   ifdb: true, bt: false, value: "人民币", title: '币别', dataIndex: 'bb', inputType: "select_item",
    //   selectdata: [
    //     { value: '人民币', label: "人民币" }, { value: '美元', label: "美元" },]
    // },
    aqkc: { ifdb: true, bt: false, value: "", title: '安全库存', dataIndex: 'aqkc', inputType: "input_number_item", },
    sfqy: {
      ifdb: true, bt: true, value: "已启用", title: '是否启用', dataIndex: 'sfqy', inputType: "select_item",
      disabled: "true",
      selectdata: [
        { value: '已启用', label: "已启用" }, { value: '已禁用', label: "已禁用" },]
    },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item", lineheight: "6.5rem" },
    fj: {
      ifdb: true, bt: false, value: "", title: '附件', dataIndex: 'fj', inputType: "upload_fj_item",
      oneline: "true",
    },
  }
  return initformdata
}

/**
 * 
 * @returns 物料档案mxlist columm
 */
export function use_wlda_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '购买单价', dataIndex: 'gmdj', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '购买时间', dataIndex: 'gmsj', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '购买厂家', dataIndex: 'gmcj', inputType: "input_item" },
  ]
  return colmuns
}

/**
 * 
 * @param {*} 供应商档案formdata 
 * @returns 
 */
export function use_gys_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    // dj_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'dj_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    gys_title: { ifdb: false, bt: false, value: "", title: '基本信息', dataIndex: 'gys_title', inputType: "title_item" },
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "input_item" },
    hzzt: { ifdb: true, bt: true, value: storage.yhlx=="租户用户"?"准入中":"", title: '合作状态', dataIndex: 'hzzt', inputType: "select_item_new",disabled:storage.yhlx=="租户用户",
      datas_key: 'dict_hzzt',
      popup_tansferarr: [
        { origin: "label", target: "hzzt" },
      ],
    },
    erpdm: { ifdb: true, bt: false, value: "", title: 'ERP代码', dataIndex: 'erpdm', inputType: "input_item" },
    ghcp: { ifdb: true, bt: false, value: "", title: '供货产品', dataIndex: 'ghcp', inputType: "input_item" },
    lxr: { ifdb: true, bt: false, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item" },
    sj: { ifdb: true, bt: false, value: "", title: '手机', dataIndex: 'sj', inputType: "input_item" },
    gsdz: { ifdb: true, bt: false, value: "", title: '公司地址', dataIndex: 'gsdz', inputType: "input_item" },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "input_item" },
    dj: { ifdb: true, bt: false, value: "", title: '等级', dataIndex: 'dj', inputType: "input_item" },
    gysjj: { ifdb: true, bt: false, value: "", title: '供应商简介', dataIndex: 'gysjj', inputType: "input_text_item" },

    gysdcbmb: { ifdb: false, bt: false, value: "供应商调查表.docx", title: '供应商调查表模板', dataIndex: 'gysdcbmb', inputType: "view_fj_item",style:{height:"2.4rem"} },
    gysdcb:{ifdb:true,bt:false,value:"",title:"供应商调查表",dataIndex:"gysdcb",inputType:"upload_fj_item",style:{height:"2.4rem"}},
    shxx_title: { ifdb: false, bt: false, value: "", title: '税务信息', dataIndex: 'shxx_title', inputType: "title_item" },
    sh: { ifdb: true, bt: false, value: "", title: '税号', dataIndex: 'sh', inputType: "input_item" },
    khh: { ifdb: true, bt: false, value: "", title: '开户行', dataIndex: 'khh', inputType: "input_item" },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item" },
    zzfp: { ifdb: true, bt: false, value: "", title: '该公司是否可以开增值税发票', dataIndex: 'zzfp', inputType: "input_item" },
    jxsl: { ifdb: true, bt: false, value: "", title: '进项税率', dataIndex: 'jxsl', inputType: "input_item" },

    zzxx_title: { ifdb: false, bt: false, value: "", title: '证照信息', dataIndex: 'zzxx_title', inputType: "title_item" },
    yyzz: { ifdb: true, bt: true, value: "", title: '营业执照', dataIndex: 'yyzz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    
    xysbdm: { ifdb: true, bt: false, value: "", title: '社会信用代码', dataIndex: 'xysbdm', inputType: "input_item" },
    // bfdw: { ifdb: true, bt: false, value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },

    // zzyxqks: { ifdb: true, bt: false, value: "", title: '执照有效期开始', dataIndex: 'zzyxqks', inputType: "date_item" },

    // zzyxqjs: { ifdb: true, bt: false, value: "", title: '有效期结束', dataIndex: 'zzyxqjs', inputType: "date_item" },
    fzsfz: { ifdb: true, bt: false, value: "", title: '法人身份证正反面', dataIndex: 'fzsfz', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    // sfzyxqks: { ifdb: true, bt: false, value: "", title: '身份证有效期开始', dataIndex: 'sfzyxqks', inputType: "date_item" },
    // sfzyxqjs: { ifdb: true, bt: false, value: "", title: '身份证有效期结束', dataIndex: 'sfzyxqjs', inputType: "date_item" },
    gysdm: { ifdb: true, bt: false, value: "", title: '供应商编码', dataIndex: 'gysdm', inputType: "none" },
    gyswhzt: { ifdb: true, bt: false, value: "", title: '供应商维护状态', dataIndex: 'gyswhzt', inputType: "none" },
    lhyy: { ifdb: true, bt: false, value: "", title: '拉黑原因', dataIndex: 'lhyy', inputType: "none" },
    lhrq: { ifdb: true, bt: false, value: "", title: '拉黑日期', dataIndex: 'lhrq', inputType: "none" },
    

  }
  return initformdata
}


/**
 * 
 * @returns 供应商供货能力明细mxlist columm
 */
export function use_gys_ghmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '供货类型', dataIndex: 'ghlx', inputType: "select_item_new",
      datas_key: 'data_ejfl',
      popup_tansferarr: [
        { origin: "label", target: "ghlx" },
        { origin: "ejflbm", target: "ghbm" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '供货编码', dataIndex: 'ghbm', inputType: "input_item",disabled: true },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '物料名称', dataIndex: 'wlmc', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '年产能', dataIndex: 'ncn', inputType: "input_number_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '备注', dataIndex: 'bz', inputType: "input_item" },
  
  
  ]
  return colmuns
}


/**
 * 
 * @returns 供应商资质证书明细mxlist columm
 */
export function use_gys_zzsz_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '证书名称', dataIndex: 'zsmc', inputType: "select_item_new",
      datas_key: 'dict_zsmc',
      popup_tansferarr: [
        { origin: "label", target: "zsmc" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '资质名称', dataIndex: 'zzmc', inputType: "select_item_new",
      datas_key: 'dict_zzmc',
      popup_tansferarr: [
        { origin: "label", target: "zzmc" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '证书编号', dataIndex: 'zsbh', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '颁发单位', dataIndex: 'bfdw', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '有效期开始', dataIndex: 'yxqks', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '有效期结束', dataIndex: 'yxqjs', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '附件上传', dataIndex: 'fjsc',width:"20rem", inputType: "upload_fj_item" },
   
  ]
  return colmuns
}
  



/**
 * 
 * @returns 供应商授权明细mxlist columm
 */
export function use_gys_sqmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '部门', dataIndex: 'bm', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '职务', dataIndex: 'zw', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '联系电话', dataIndex: 'lxdh', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '电子邮件', dataIndex: 'dzyj', inputType: "input_item" },
{ ifdb: true, bt: false, defalut_v: "",value: "", title: '授权书', dataIndex: 'sqs', inputType: "upload_fj_item" },


   
   
  ]
  return colmuns
}


/**
 * 
 * @returns 供应商银行明细mxlist columm
 */
export function use_gys_yhmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '标识类型', dataIndex: 'bslx', inputType: "select_item_new" ,
      datas_key: 'dict_bslx',
      popup_tansferarr: [
        { origin: "label", target: "bslx" },
      ],
    },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '银行名称', dataIndex: 'yhmc', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '银行账户', dataIndex: 'yhzh', inputType: "input_item" },
   { ifdb: true, bt: false, defalut_v: "",value: "", title: '账户持有人', dataIndex: 'zhcyr', inputType: "input_item" },
  

   
   
  ]
  return colmuns
}
  
  

/**
 * 
 * @returns 供应商考评明细mxlist columm
 */
export function use_gys_kpmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '考评周期起', dataIndex: 'kpzqq', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '考评周期止', dataIndex: 'kpzqz', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '质量', dataIndex: 'zl', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '交付', dataIndex: 'jf', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '投诉处理', dataIndex: 'tscl', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '服务', dataIndex: 'fw', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '月度得分', dataIndex: 'yddf', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '评定等级', dataIndex: 'pddj', inputType: "select_item_new",disabled: true,
      datas_key: 'dict_pddj',
      popup_tansferarr: [
        { origin: "label", target: "pddj" },
      ],
    },
   
  

   
   
  ]
  return colmuns
}
  




/**
 * 
 * @returns 正常人员档案colmun
 */
export function use_ry_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100   },
    { show: true,ellipsis: true, title: "部门", key: "bmmc", dataIndex:"bmmc",width: 120, },
    // { show: true, title: "部门序号", key: "bmmc_row", width: '7vw', },
    { show: true,ellipsis: true, title: "职位", key: "gw", dataIndex:"gw",width: 100  },
    { show: true,ellipsis: true, title: "用户名", key: "xm", dataIndex:"xm", width: 280 },
    { show: true,ellipsis: true, title: "用户类型", key: "yhlx", dataIndex:"yhlx", width: 100 },
    { show: true,ellipsis: true, title: "性别", key: "xb", dataIndex:"xb" ,width: 100},
    { show: true,ellipsis: true, title: "手机号", key: "dh" ,width:200,dataIndex:"dh"}, 
    //  { show: true, title: "工龄", key: "gl" },
    // { show: true, title: "民族", key: "mz" },
    // { show: true, title: "学历", key: "xl" },
    // { show: true, title: "户口", key: "hk" },
    
    // { show: true, title: "身份证号", key: "sfzhm",width:'15vw'},
    { show: true,ellipsis: true, title: "人员状态", key: "ryzt", dataIndex:"ryzt", width: 100 },
    { show: true,ellipsis: true, title: "禁用时间", key: "lzsj", dataIndex:"lzsj" },
      // { show: true, title: "社保情况", key: "sbqk",width:'7vw'},
      //  { show: true, title: "合同", key: "yglx"},
      //  { show: true, title: "备注说明", key: "bz" },
  ]

}
/**
 * 
 * @returns 离职人员档案colmun
 */
export function use_lz_ry_initcolmun() {
  return [{ show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100   },
    { show: true,ellipsis: true, title: "部门", key: "bmmc", dataIndex:"bmmc",width: 120, },
    // { show: true, title: "部门序号", key: "bmmc_row", width: '7vw', },
    { show: true,ellipsis: true, title: "职位", key: "gw", dataIndex:"gw",width: 100  },
    { show: true,ellipsis: true, title: "用户名", key: "xm", dataIndex:"xm", width: 100 },
    { show: true,ellipsis: true, title: "用户类型", key: "yhlx", dataIndex:"yhlx", width: 100 },
    { show: true,ellipsis: true, title: "性别", key: "xb", dataIndex:"xb" ,width: 100},
    { show: true,ellipsis: true, title: "手机号", key: "dh" ,width:200,dataIndex:"dh"}, 
    //  { show: true, title: "工龄", key: "gl" },
    // { show: true, title: "民族", key: "mz" },
    // { show: true, title: "学历", key: "xl" },
    // { show: true, title: "户口", key: "hk" },
    
    // { show: true, title: "身份证号", key: "sfzhm",width:'15vw'},
    { show: true,ellipsis: true, title: "人员状态", key: "ryzt", dataIndex:"ryzt", width: 100 },
    { show: true,ellipsis: true, title: "禁用时间", key: "lzsj", dataIndex:"lzsj" },
      // { show: true, title: "社保情况", key: "sbqk",width:'7vw'},
      //  { show: true, title: "合同", key: "yglx"},
      //  { show: true, title: "备注说明", key: "bz" },
  ]

}




/**
 * 
 * @param {*} 人员档案formdata 
 * @returns 
 */
export function use_ry_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '人员信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    // create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    // create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    // update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    // update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    xm: { ifdb: true, bt: true, value: "", title: '用户名', dataIndex: 'xm', inputType: "input_item", },
    // xb: {
    //   ifdb: true, bt: false , value: "", title: '性别', dataIndex: 'xb', inputType: "select_item",
    //   selectdata: [
    //     { value: '男', label: "男" }, { value: '女', label: "女" },]
    // },
    gw: { ifdb: true, bt: false, value: "", title: '职位', dataIndex: 'gw', inputType: "input_item", },
    bmmc: { ifdb: true, bt: false, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "select_item_new",
      datas_key: 'query_bm',
      popup_tansferarr: [
        { origin: "label", target: "bmmc" },
      ],
    },
    dh: { ifdb: true, bt: true, value: "", title: '手机号', dataIndex: 'dh', inputType: "input_item", },
   

    // gh: { ifdb: true, bt: false, value: "", title: '工号', dataIndex: 'gh', inputType: "input_item", },
    
    // bmid: { ifdb: true, bt: false, value: "", title: '部门id', dataIndex: 'bmid', inputType: "readonly", },

    zhxx_title: { ifdb: false, bt: false, value: "", title: '账号信息', dataIndex: 'zhxx_title', inputType:"title_item" , },
    
    zh: { ifdb: true, bt: true, value: "", title: '账号', dataIndex: 'zh', inputType: "input_item" , },
    mm: { ifdb: true, bt: true, value: "", title: '密码', dataIndex: 'mm', inputType: "input_item" , },
    yhlx: { ifdb: true, bt: true, value: "", title: '用户类型', dataIndex: 'yhlx', inputType: "select_item_new",
      datas_key: 'dict_yhlx',
      popup_tansferarr: [
        { origin: "label", target: "yhlx" },
      ],
    },
    js: {
      ifdb: true, bt: true, value: "", title: '角色', dataIndex: 'js', inputType: "popup_item_datas_new" ,
      popup_maintitle: '菜单名称', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "角色名称", key: "jsmc" },
      ],
      datas_key: 'dates_js',
      popup_tansferarr: [
        { origin: "jsmc", target: "js" },
        { origin: "id", target: "jsid" },
      ],
    },
    rzsj: { ifdb: true, bt: false, value: usenowDate() , title: '入驻时间', dataIndex: 'rzsj', inputType: "date_item",disabled: true },
    
    ryzt: {
      ifdb: true, bt: true, value: "正常", title: '用户状态', dataIndex: 'ryzt', inputType: "select_item" , selectdata: [
        { value: '禁用', label: "禁用" }, { value: '正常', label: "正常" },]
    },
    lzsj: { ifdb: false, bt: false, value: "", title: '禁用时间', dataIndex: 'lzsj', inputType: "none",disabled: true },
   
    jsid: { ifdb: true, bt: false, value: "", title: '角色id', dataIndex: 'jsid', inputType: "none" , },
    glgys: { ifdb: true, bt: false, value: "", title: '关联供应商', dataIndex: 'glgys', inputType: "select_item_new",
      datas_key: 'query_gys',
      popup_tansferarr: [
        { origin: "label", target: "glgys" },
      ],
    },
  }
  return initformdata
}


/**
 * 
 * @param {*} 人员档案formdata 
 * @returns 
 */
export function use_ry_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '人员信息', dataIndex: 'wlxx_title', inputType: "title_item" },
   
    xm: { ifdb: true, bt: true, value: "", title: '用户名', dataIndex: 'xm', inputType: "view_item", },
   
    gw: { ifdb: true, bt: false, value: "", title: '职位', dataIndex: 'gw', inputType: "view_item", },
    bmmc: { ifdb: true, bt: false, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "view_item"},
    dh: { ifdb: true, bt: false, value: "", title: '手机号', dataIndex: 'dh', inputType: "view_item", },
    zhxx_title: { ifdb: false, bt: false, value: "", title: '账号信息', dataIndex: 'zhxx_title', inputType: storage.js ==  "title_item" , },
    
    zh: { ifdb: true, bt: false, value: "", title: '账号', dataIndex: 'zh', inputType: "view_item" , },
    mm: { ifdb: true, bt: false, value: "", title: '密码', dataIndex: 'mm', inputType: "view_item",},
    yhlx: { ifdb: true, bt: false, value: "", title: '用户类型', dataIndex: 'yhlx', inputType: "view_item"},
    js: {
      ifdb: true, bt: false, value: "", title: '角色', dataIndex: 'js', inputType:"view_item" ,
    },
    rzsj: { ifdb: true, bt: false, value: usenowDate() , title: '入驻时间', dataIndex: 'rzsj', inputType: "view_item",disabled: true },
    
    ryzt: {
      ifdb: true, bt: false, value: "正常", title: '用户状态', dataIndex: 'ryzt', inputType: "view_item" },
    lzsj: { ifdb: true, bt: false, value: "", title: '禁用时间', dataIndex: 'lzsj', inputType: "view_item",disabled: true },
   
    jsid: { ifdb: true, bt: false, value: "", title: '角色id', dataIndex: 'jsid', inputType: "none", },

  }
  return initformdata
}


/**
 * 
 * @returns 注册申请colmun
 */
export function use_zcxx_initcolmun() {
  return [{  show: true,ellipsis: true, title: "序号", key: "xuhao",dataIndex:"xuhao", width: 100 },
  
  {  show: true,ellipsis: true, title: "供应商名称", key: "gysmc",dataIndex:"gysmc",width: 220 },
  {  show: true,ellipsis: true, title: "信用识别代码", key: "xysbdm", dataIndex:"xysbdm",width: 220 },
  {  show: true,ellipsis: true, title: "联系人", key: "lxr", dataIndex:"lxr",width: 100 },
  {  show: true,ellipsis: true, title: "手机号", key: "dh", dataIndex:"dh",width: 120  },
  {  show: true,ellipsis: true, title: "处理状态", key: "clzt", dataIndex:"clzt",width: 120  },
  {  show: true,ellipsis: true,title: "创建时间", key: "create_time",dataIndex:"create_time"},
  ]
}

/**
 * 
 * @param {*} 注册申请formdata 
 * @returns 
 */
export function use_zcxx_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '系统信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    clzt: { ifdb: true, bt: false, value: "未处理", title: '处理状态', dataIndex: 'clzt', inputType: "input_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '申请信息', dataIndex: 'khxx_title', inputType: "title_item" },
   
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "input_item", },
    xysbdm: { ifdb: true, bt: true, value: "", title: '信用识别代码', dataIndex: 'xysbdm', inputType: "input_item", },
    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '手机号', dataIndex: 'dh', inputType: "input_item", },
    fhxx: { ifdb: true, bt: true, value: "", title: '发送信息回写信息', dataIndex: 'fhxx', inputType: "none", },
    fhid: { ifdb: true, bt: true, value: "", title: '发送信息回写id', dataIndex: 'fhid', inputType: "none", },


  }
  return initformdata
}

/**
 * 
 * @param {*} 注册申请formdata 
 * @returns 
 */
export function use_zcxx_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '系统信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    clzt: { ifdb: true, bt: false, value: "未处理", title: '处理状态', dataIndex: 'clzt', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '申请信息', dataIndex: 'khxx_title', inputType: "title_item" },
   
    gysmc: { ifdb: true, bt: true, value: "", title: '供应商名称', dataIndex: 'gysmc', inputType: "view_item", },
    xysbdm: { ifdb: true, bt: true, value: "", title: '信用识别代码', dataIndex: 'xysbdm', inputType: "view_item", },
    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "view_item", },
    dh: { ifdb: true, bt: true, value: "", title: '手机号', dataIndex: 'dh', inputType: "view_item", },


  }
  return initformdata
}




/**
 * 
 * @returns 客户档案colmun
 */
export function use_khda_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao", width: "4rem" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "编码", key: "bm" },
  { show: true, title: "名称", key: "mc", width: "14rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "地址", key: "dz", width: "18rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "联系人", key: "lxr" },
  { show: true, title: "电话", key: "dh" },

  ]
}

/**
 * 
 * @param {*} 客户档案formdata 
 * @returns 
 */
export function use_khda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'khxx_title', inputType: "title_item" },
    khlx: {
      ifdb: true, bt: true, value: "订单客户", title: '客户类型', dataIndex: 'khlx', inputType: "select_item",
      selectdata: [{ value: "订单客户", label: "订单客户" }, { value: "售后客户", label: "售后客户" }]
    },
    mc: { ifdb: true, bt: true, value: "", title: '客户名称', dataIndex: 'mc', inputType: "input_item", },
    bm: { ifdb: true, bt: true, value: "", title: '客户编码', dataIndex: 'bm', inputType: "input_number_item", },
    gngw: {
      ifdb: true, bt: true, value: "国内", title: '国内国外', dataIndex: 'gngw', inputType: "select_item",
      selectdata: [
        { value: '国内', label: "国内" }, { value: '国外', label: "国外" },]
    },
    // jc: { ifdb: true, bt: false, value: "", title: '简称', dataIndex: 'jc', inputType: "input_item", },
    // dqbm: { ifdb: true, bt: false, value: "", title: '地区编码', dataIndex: 'dqbm', inputType: "input_item", },
    // hybm: { ifdb: true, bt: false, value: "", title: '行业编码', dataIndex: 'hybm', inputType: "input_item", },
    // ssdq: { ifdb: true, bt: false, value: "", title: '所属地区', dataIndex: 'ssdq', inputType: "input_item", },
    shxx_title: { ifdb: false, bt: false, value: "", title: '收货信息', dataIndex: 'shxx_title', inputType: "title_item" },

    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '电话', dataIndex: 'dh', inputType: "input_item", },
    dz: { ifdb: true, bt: true, value: "", title: '地址', dataIndex: 'dz', inputType: "input_text_item", },


    yhxx_title: { ifdb: false, bt: false, value: "", title: '开票信息', dataIndex: 'yhxx_title', inputType: "title_item" },
    nsrsbh: { ifdb: true, bt: false, value: "", title: '纳税人识别号', dataIndex: 'nsrsbh', inputType: "input_item", },

    khyh: { ifdb: true, bt: false, value: "", title: '开户银行', dataIndex: 'khyh', inputType: "input_item", },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item", },
    yb: { ifdb: true, bt: false, value: "", title: '邮编', dataIndex: 'yb', inputType: "input_item", },


  }
  return initformdata
}
/**
 * 
 * @returns 部门档案colmun
 */
export function use_bm_initcolmun() {
  return [{ show: true,ellipsis: true,  title: "序号", key: "xuhao" ,dataIndex:"xuhao",width:120},

  { show: true,ellipsis: true,  title: "部门名称", key: "bmmc" ,dataIndex:"bmmc",width:120},
  { show: true,ellipsis: true,  title: "部门编号", key: "bmbh" ,dataIndex:"bmbh",width:120},
  { show: true,ellipsis: true,  title: "上级部门", key: "sjbm" ,dataIndex:"sjbm",width:120},
  { show: true,ellipsis: true,  title: "部门负责人", key: "bmfzr" ,dataIndex:"bmfzr",width:120},
  { show: true,ellipsis: true,  title: "备注说明", key: "bzsm" ,dataIndex:"bzsm",width:120},
  // { show: true,ellipsis: true,  title: "创建时间", key: "create_time" ,dataIndex:"create_time",width:160},
  // { show: true,ellipsis: true,  title: "创建人", key: "create_by" ,dataIndex:"create_by"},
  ]
}

/**
 * 
 * @param {*} 部门档案formdata 
 * @returns 
 */
export function use_bm_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bmxx_title: { ifdb: false, bt: false, value: "", title: '部门信息', dataIndex: 'bmxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    bmmc: { ifdb: true, bt: true, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "input_item", },
    bmbh: { ifdb: true, bt: true, value: "", title: '部门编号', dataIndex: 'bmbh', inputType: "input_item", },
    sjbm: {
      ifdb: true, bt: true, value: "", title: '上级部门', dataIndex: 'sjbm', inputType: "tree_select_item",
      selectdata: []
    },
    parentid: { ifdb: true, bt: true, value: "", title: 'parentid', dataIndex: 'parentid', inputType: "none", },
    bmfzr: { ifdb: true, bt: false, value: "", title: '部门负责人', dataIndex: 'bmfzr', inputType: "input_item",
      datas_key: "query_ry_glyh",
      popup_tansferarr: [
        { origin: "id", target: "bmfzrid" },
        { origin: "xm", target: "bmfzr" },
      ]
    },
    bmfzrid: { ifdb: true, bt: false, value: "", title: '部门负责人id', dataIndex: 'bmfzrid', inputType: "none", },
    bzsm: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 * 
 * @param {*} 部门档案查看formdata 
 * @returns 
 */
export function use_bm_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bmxx_title: { ifdb: false, bt: false, value: "", title: '部门信息', dataIndex: 'bmxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "view_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    bmmc: { ifdb: true, bt: true, value: "", title: '部门名称', dataIndex: 'bmmc', inputType: "view_item", },
    bmbh: { ifdb: true, bt: true, value: "", title: '部门编号', dataIndex: 'bmbh', inputType: "view_item", },
    sjbm: {
      ifdb: true, bt: true, value: "", title: '上级部门', dataIndex: 'sjbm', inputType: "view_item"},
    parentid: { ifdb: true, bt: true, value: "", title: 'parentid', dataIndex: 'parentid', inputType: "none", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "view_item", },
  }
  return initformdata
}
/**
 * 
 * @returns 车间档案colmun
 */
export function use_cj_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "车间名称", key: "cjmc" },
  { show: true, title: "车间编码", key: "cjbm" },
  { show: true, title: "备注说明", key: "bzsm" },
  ]
}

/**
 * 
 * @param {*} 车间档案formdata 
 * @returns 
 */
export function use_cj_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cjmc: { ifdb: true, bt: true, value: "", title: '车间名称', dataIndex: 'cjmc', inputType: "input_item", },
    cjbm: { ifdb: true, bt: true, value: "", title: '车间编码', dataIndex: 'cjbm', inputType: "input_item", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 

 * @returns 产线档案colmun
 */
export function use_cx_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "产线名称", key: "cxmc" },
  { show: true, title: "产线编码", key: "cxbm" },
  { show: true, title: "备注说明", key: "bzsm" },
  ]
}

/**
 * 
 * @param {*} 产线档案formdata 
 * @returns 
 */
export function use_cx_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '产线信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cxmc: { ifdb: true, bt: true, value: "", title: '产线名称', dataIndex: 'cxmc', inputType: "input_item", },
    cxbm: { ifdb: true, bt: true, value: "", title: '产线编码', dataIndex: 'cxbm', inputType: "input_number_item", },
    bzsm: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bzsm', inputType: "input_text_item", },
  }
  return initformdata
}

/**
 * 
 * @returns 仓库档案colmun
 */
export function use_ckda_initcolmun() {
  return [{ show: true, ellipsis: true, title: "序号", key: "xuhao", dataIndex: "xuhao", width: 67 },
  // { show: true, ellipsis: true, title: "创建时间", key: "create_time", dataIndex: "create_time", width: 160},
  // { show: true, ellipsis: true, title: "创建人", key: "create_by", dataIndex: "create_by", width: 120 },
  { show: true, ellipsis: true, title: "仓库编码", key: "ckbm", dataIndex: "ckbm", width: 120 },
  { show: true, ellipsis: true, title: "仓库名称", key: "ckmc", dataIndex: "ckmc", width: 120 },
  { show: true, ellipsis: true, title: "备注", key: "bz", dataIndex: "bz", width: 120 },
  { show: true, ellipsis: true, title: "仓库状态", key: "ckzt", dataIndex: "ckzt" },

  ]
}

/**
 * 
 * @param {*} 仓库档案formdata 
 * @returns 
 */
export function use_ckda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    ckmc: { ifdb: true, bt: true, value: "", title: '仓库名称', dataIndex: 'ckmc', inputType: "input_item", },
    ckbm: { ifdb: true, bt: true, value: "", title: '仓库编码', dataIndex: 'ckbm', inputType: "input_item", },
    ckzt: {
      ifdb: true, bt: true, value: "正常", title: '仓库状态', dataIndex: 'ckzt', inputType: "select_item",
      selectdata: [{ value: "禁用", label: "禁用" }, { value: "正常", label: "正常" }]
    },
    ckfzr: {
      ifdb: true, bt: false, value: "", title: '仓库负责人', dataIndex: 'ckfzr', inputType: "input_item",
      datas_key: "query_ry_glyh",
      popup_tansferarr: [
        { origin: "id", target: "ckfzrid" },
        { origin: "xm", target: "ckfzr" },
      ]
      
    },
    ckfzrid: { ifdb: true, bt: false, value: "", title: '仓库负责人id', dataIndex: 'ckfzrid', inputType: "none", },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @param {*} 仓库档案viewformdata 
 * @returns 
 */
export function use_ckda_view_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "view_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    ckmc: { ifdb: true, bt: true, value: "", title: '仓库名称', dataIndex: 'ckmc', inputType: "view_item", },
    ckbm: { ifdb: true, bt: true, value: "", title: '仓库编码', dataIndex: 'ckbm', inputType: "view_item", },
    ckzt: {
      ifdb: true, bt: true, value: "正常", title: '仓库状态', dataIndex: 'ckzt', inputType: "view_item",
     
    },
    ckfzr: {
      ifdb: true, bt: true, value: "", title: '仓库负责人', dataIndex: 'ckfzr', inputType: "view_item",
      datas_key: "query_ry_glyh",
      popup_tansferarr: [
        { origin: "id", target: "ckfzrid" },
        { origin: "xm", target: "ckfzr" },
      ]
      
    },
    ckfzrid: { ifdb: true, bt: true, value: "", title: '仓库负责人id', dataIndex: 'ckfzrid', inputType: "none", },
   
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: true, value: "", title: '备注说明', dataIndex: 'bz', inputType: "view_item", },

  }
  return initformdata
}


/**
 * 
 * @returns 文档档案colmun
 */
export function use_wd_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "创建时间", key: "create_time" },
    { show: true, title: "创建人", key: "create_by" },
    { show: true, title: "文件名称", key: "wjmc" },
    { show: true, title: "分类名称", key: "flmc" },
    { show: true, title: "文件权限", key: "wjqx" },
    { show: true, title: "备注", key: "bz" },
    { show: true, title: "下载次数", key: "xzcs" },
  ]
}

/**
 * 
 * @param {*} 文档档案formdata 
 * @returns 
 */
export function use_wd_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    wjmc: { ifdb: true, bt: true, value: "", title: '文件名称', dataIndex: 'wjmc', inputType: "input_item", },
    flmc: {
      ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "select_item_new",
      datas_key: "query_wdfl",
      popup_tansferarr: [
        { origin: "flmc", target: "flmc" },
      ]
    },
    wjqx: {
      ifdb: true, bt: true, value: "", title: '文件权限', dataIndex: 'wjqx', inputType: "select_item_new",
      datas_key: "query_js",
      popup_tansferarr: [
        { origin: "jsmc", target: "wjqx" },
      ]
    },
    fj: {
      ifdb: true, bt: false, value: "", title: '附件', dataIndex: 'fj', inputType: "upload_fj_item",
      oneline: "true", lineheight: "5.6rem"
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}

/**
 * 
 * @returns 文档分类colmun
 */
export function use_wdfl_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "创建时间", key: "create_time" },
    { show: true, title: "创建人", key: "create_by" },
    { show: true, title: "分类名称", key: "flmc" },
    { show: true, title: "几级分类", key: "jjfl" },
    { show: true, title: "上一级分类名称", key: "parent_mc" },
    { show: true, title: "备注", key: "bz" },
  ]
}

/**
 * 
 * @param {*} 文档分类formdata 
 * @returns 
 */
export function use_wdfl_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    flmc: { ifdb: true, bt: true, value: "", title: '分类名称', dataIndex: 'flmc', inputType: "input_item", },
    jjfl: { ifdb: true, bt: true, value: "", title: '几级分类', dataIndex: 'jjfl', inputType: "input_number_item", },
    parent_mc: {
      ifdb: true, bt: false, value: "", title: '上一级分类名称', dataIndex: 'parent_mc', inputType: "select_item_new",
      datas_key: "query_wdfl",
      popup_tansferarr: [
        { origin: "flmc", target: "parent_mc" },
      ]
    },
    // cksx: { ifdb: true, bt: true, value: "", title: '仓库属性', dataIndex: 'cksx', inputType: "input_item", },    
    bz: { ifdb: true, bt: false, value: "", title: '备注说明', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}


/**
 * 
 * @returns 文档档案colmun
 */
export function use_wd_mx_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao", width: "60px" },
    { show: true, title: "下载人", key: "xzr" },
    { show: true, title: "下载时间", key: "xzsj" },
  ]
}

/**
 * 
 * @returns 产品档案colmun
 */
export function use_cpda_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao" },
    { show: true, title: "物料编码", key: "wlbm" },
    { show: true, title: "物料名称", key: "wlmc" },
    { show: true, title: "规格型号", key: "ggxh" },
    //  { show: true, title: "产品组", key: "cpz" },
    //{ show: true, title: "产品重量", key: "cpzl" },
    //  { show: true, title: "产品体积", key: "cptj" },
    //    { show: true, title: "保质期", key: "bzq" },
    { show: true, title: "当前库存", key: "dqkc" },
    { show: true, title: "安全库存", key: "aqkc" },
    { show: true, title: "产品图片", key: "cptp", rendertype: "img" },
    { show: true, title: "工艺路线", key: "gylx_mc", rendertype: "url" },
    { show: true, title: "作业指导书", key: "zyzds_mc", rendertype: "url" },


  ]
}

/**
 * 
 * @param {*} 产品档案formdata 
 * @returns 
 */
export function use_cpda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    wlxx_title: { ifdb: false, bt: false, value: "", title: '文档信息', dataIndex: 'wlxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cpda_title: { ifdb: false, bt: false, value: "", title: '产品信息', dataIndex: 'cpda_title', inputType: "title_item" },

    wlmc: {
      ifdb: true, bt: true, defalut_v: "", value: "", title: '产品名称', dataIndex: 'wlmc', inputType: "popup_item_datas",
      width: "10rem",
      popup_maintitle: '物料名称', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "物料名称", key: "wlmc" },
        { title: "物料编码", key: "wlbm" },
        { title: "规格型号", key: "ggxh" },
        { title: "单位", key: "dw" },
        { title: "版本号", key: "bbh" },
        { title: "备注说明", key: "bzsm" },

      ],
      datas_key: 'datas_wlmc',
      popup_tansferarr: [
        { origin: "wlmc", target: "wlmc" },
        { origin: "wlbm", target: "wlbm" },
        { origin: "ggxh", target: "ggxh" },
        { origin: "bbh", target: "bbh" },

      ],
    },
    wlbm: { ifdb: true, bt: false, value: "", title: '物料编码', dataIndex: 'wlbm', inputType: "readonly" },
    ggxh: { ifdb: true, bt: false, value: "", title: '规格型号', dataIndex: 'ggxh', inputType: "readonly" },

    bzscsj: { ifdb: true, bt: false, value: "", title: '标准生产时间', dataIndex: 'bzscsj', inputType: "input_number_item" },

    cpz: { ifdb: true, bt: false, value: "", title: '产品组', dataIndex: 'cpz', inputType: "input_item" },
    cpzl: { ifdb: true, bt: false, value: "", title: '产品重量', dataIndex: 'cpzl', inputType: "input_item" },
    cptj: { ifdb: true, bt: false, value: "", title: '产品体积', dataIndex: 'cptj', inputType: "input_item" },
    bzq: { ifdb: true, bt: false, value: "", title: '保质期', dataIndex: 'bzq', inputType: "input_number_item" },
    aqkc: { ifdb: true, bt: true, value: "0", title: '安全库存', dataIndex: 'aqkc', inputType: "input_item" },

    cctj: { ifdb: true, bt: false, value: "", title: '存储条件', dataIndex: 'cctj', inputType: "input_item" },
    cptp: {
      ifdb: true, bt: false, value: "", title: '产品图片', dataIndex: 'cptp', inputType: "upload_item",
      oneline: "true", lineheight: "5.6rem"

    },

    gylx_title: { ifdb: false, bt: false, value: "", title: '工艺路线', dataIndex: 'gylx_title', inputType: "title_item" },
    //  gylx_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'gylx_mc', inputType: "input_item" },
    //    gylx_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'gylx_bm', inputType: "input_item" },
    gylxgl: { ifdb: true, bt: false, value: "", title: '工艺路线概览', dataIndex: 'gylxgl', inputType: "input_text_item", disabled: true },
    //    gylx_qysj: { ifdb: true, bt: false, value: usenowDate(), title: '启用时间', dataIndex: 'gylx_qysj', inputType: "date_item" },
    fj_title: { ifdb: false, bt: false, value: "", title: '附件信息', dataIndex: 'fj_title', inputType: "title_item" },

    //  zyzds_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'zyzds_mc', inputType: "input_item" },
    //  zyzds_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'zyzds_bm', inputType: "input_item" },
    zyzds__bb: { customlinewidth: "23.9%", lineheight: "3.6rem", ifdb: true, bt: false, value: "", title: '作业指导书附件', dataIndex: 'zyzds__bb', inputType: "upload_fj_item" },
    //  zyzds_qysj: { ifdb: true, bt: false, value: "", title: '启用时间', dataIndex: 'zyzds_qysj', inputType: "date_item" },

    //  zjzds_title: { ifdb: false, bt: false, value: "", title: '质检指导书', dataIndex: 'zjzds_title', inputType: "title_item" },

    //  zjzds_mc: { ifdb: true, bt: false, value: "", title: '名称', dataIndex: 'zjzds_mc', inputType: "input_item" },
    //  zjzds_bm: { ifdb: true, bt: false, value: "", title: '编码', dataIndex: 'zjzds_bm', inputType: "input_item" },
    zjzds_bb: { customlinewidth: "23.9%", lineheight: "3.6rem", ifdb: true, bt: false, value: "", title: '质检指导书附件', dataIndex: 'zjzds_bb', inputType: "upload_fj_item" },
    // zjzds_qysj: { ifdb: true, bt: false, value: "", title: '启用时间', dataIndex: 'zjzds_qysj', inputType: "date_item" },

  }
  return initformdata
}



/**
 * 
 * @returns 产品档案colmun
 */
export function use_cpda_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "none" },

    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    {
      ifdb: true, bt: false, defalut_v: "", value: "", title: '选择产品', dataIndex: 'cpbm',
      inputType: "readonly",
      popup_maintitle: '物料档案', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "图号", key: "ggxh" },
        { title: "单位", key: "dw" },
        { title: "物料名称", key: "wlmc" },
        { title: "物料编码", key: "wlbm" },
        { title: "版本号", key: "bbh" },
        { title: "备注说明", key: "bzsm" },
      ],
      datas_key: 'datas_wlmc',
      popup_tansferarr: [
        { origin: "wlmc", target: "cpmc" },
        { origin: "wlbm", target: "cpbm" },
        { origin: "ggxh", target: "th" },
        { origin: "bbh", target: "bbh" },
      ],
      width: "8rem"
    },
    {
      ifdb: true, bt: true, width: "11rem", defalut_v: "", value: "", title: '产品名称', dataIndex: 'cpmc', inputType: "readonly",
    },
    {
      ifdb: true, bt: false, width: "11rem", defalut_v: "", value: "", title: '图号', dataIndex: 'th', inputType: "readonly",
    },

    {
      ifdb: true, bt: true, defalut_v: "", value: "", title: '版本号', dataIndex: 'bbh', inputType: "readonly",
    },

    { ifdb: true, bt: true, defalut_v: "", value: "", title: '数量', dataIndex: 'sl', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '材料', dataIndex: 'cl', inputType: "readonly" },
    {
      ifdb: true, bt: true, defalut_v: "否", value: "否", title: '是否组件', dataIndex: 'sfzj', inputType: "readonly",
      selectdata: [{ value: '是', title: '是' }, { value: '否', title: '否' }]
    },
    {
      ifdb: true, bt: true, defalut_v: "外购", value: "外购", title: '是否自制', dataIndex: 'sfzz', inputType: "readonly",
      selectdata: [{ value: '自制', title: '自制' }, { value: '外购', title: '外购' }]
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注', dataIndex: 'bz', inputType: "readonly" },


  ]
  return colmuns
}

/**
 * 
 * @returns 工艺路线明细colmun
 */
export function use_gylx_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: storage.ygxm, value: "", title: 'create_by', dataIndex: 'create_by', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺id', dataIndex: 'gyid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺名称', dataIndex: 'gymc', inputType: "readonly"
      , width: "12rem",
      popup_maintitle: '工艺', popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "工艺名称", key: "gymc" },
        { title: "工艺编码", key: "gybh" },
        { title: "备注", key: "bz" },
      ],
      datas_key: 'datas_gy',
      popup_tansferarr: [
        { origin: "id", target: "gyid" },
        { origin: "gymc", target: "gymc" },
        { origin: "gybh", target: "gybm" },
        { origin: "bz", target: "bz" },
      ],
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '工艺编码', dataIndex: 'gybm', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注', dataIndex: 'bz', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "readonly" },


  ]
  return colmuns
}

/**
 * 
 * @returns 财务客户档案colmun
 */
export function use_cwkhda_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao", width: "4rem" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "编码", key: "bm" },
  { show: true, title: "名称", key: "mc", width: "14rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "地址", key: "dz", width: "18rem", style: { fontSize: "0.6rem" } },
  { show: true, title: "联系人", key: "lxr" },
  { show: true, title: "电话", key: "dh" },

  ]
}

/**
 * 
 * @param {*} 财务客户档案formdata 
 * @returns 
 */
export function use_cwkhda_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    djxx_title: { ifdb: false, bt: false, value: "", title: '单据信息', dataIndex: 'djxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    khxx_title: { ifdb: false, bt: false, value: "", title: '客户信息', dataIndex: 'khxx_title', inputType: "title_item" },
    khlx: {
      ifdb: true, bt: true, value: "订单客户", title: '客户类型', dataIndex: 'khlx', inputType: "select_item",
      selectdata: [{ value: "订单客户", label: "订单客户" }, { value: "售后客户", label: "售后客户" }]
    },
    mc: { ifdb: true, bt: true, value: "", title: '客户名称', dataIndex: 'mc', inputType: "input_item", },
    bm: { ifdb: true, bt: true, value: "", title: '客户编码', dataIndex: 'bm', inputType: "input_number_item", },
    gngw: {
      ifdb: true, bt: true, value: "国内", title: '国内国外', dataIndex: 'gngw', inputType: "select_item",
      selectdata: [
        { value: '国内', label: "国内" }, { value: '国外', label: "国外" },]
    },
    // jc: { ifdb: true, bt: false, value: "", title: '简称', dataIndex: 'jc', inputType: "input_item", },
    // dqbm: { ifdb: true, bt: false, value: "", title: '地区编码', dataIndex: 'dqbm', inputType: "input_item", },
    // hybm: { ifdb: true, bt: false, value: "", title: '行业编码', dataIndex: 'hybm', inputType: "input_item", },
    // ssdq: { ifdb: true, bt: false, value: "", title: '所属地区', dataIndex: 'ssdq', inputType: "input_item", },
    shxx_title: { ifdb: false, bt: false, value: "", title: '收货信息', dataIndex: 'shxx_title', inputType: "title_item" },

    lxr: { ifdb: true, bt: true, value: "", title: '联系人', dataIndex: 'lxr', inputType: "input_item", },
    dh: { ifdb: true, bt: true, value: "", title: '电话', dataIndex: 'dh', inputType: "input_item", },
    dz: { ifdb: true, bt: true, value: "", title: '地址', dataIndex: 'dz', inputType: "input_text_item", },


    yhxx_title: { ifdb: false, bt: false, value: "", title: '开票信息', dataIndex: 'yhxx_title', inputType: "title_item" },
    nsrsbh: { ifdb: true, bt: false, value: "", title: '纳税人识别号', dataIndex: 'nsrsbh', inputType: "input_item", },

    khyh: { ifdb: true, bt: false, value: "", title: '开户银行', dataIndex: 'khyh', inputType: "input_item", },
    yhzh: { ifdb: true, bt: false, value: "", title: '银行账号', dataIndex: 'yhzh', inputType: "input_item", },
    yb: { ifdb: true, bt: false, value: "", title: '邮编', dataIndex: 'yb', inputType: "input_item", },


  }
  return initformdata
}